package com.zhou.framework.constant;

import com.zhou.util.StringTool;

/**
 * @author lang.zhou
 * @date 2022/5/5 17:32
 */
public class AppEnum {
    //token名称
    public static final String TOKEN_KEY = "appToken";
    public static final String USER_INFO = "userInfo";
    //token有效时间（单位：天）
    public static final int TOKEN_TIME = 7;
    //默认锁时长（单位：秒）
    public static final Long DEFAULT_LOCK_TIME = 30L;
    //加密key
    public static final String ENCRYPT_KEY = "zhoulang";
    //黑名单分布式锁
    public static final String BLACK_LOCK_KEY = "BLACK_LOCK_KEY" + StringTool.uuid();
    //用户权限刷新间隔
    public static final String AUTH_REFRESH_LOCK_KEY = "AUTH_REFRESH_LOCK_KEY_" + StringTool.uuid();
    //用户违规请求次数前缀，超过15次加入黑名单
    public static final String USER_BLACK_LOCK_PREFIX = "USER_BLACK_LOCK_PREFIX_" ;
    //表情包最大800k
    public static final Integer MAX_EMOTICON_SIZE = 1024*800;
    public static final Integer MAX_GIF_EMOTICON_SIZE = 1024*1024*8;
    public static final Integer MAX_HEAD_SIZE = 1024*800;
}
